package org.bridgen.test.compare;

import java.awt.Dimension;

import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JTree;

/**
 * 
 * @author Emma Söderberg <emma add cs.lth.se>
 *
 */

public class TreeCompareFrame extends JFrame {
	
	public TreeCompareFrame(Tree root, String title) {
		super(title);
		JTree tree = new JTree(root);
	    JScrollPane treeView = new JScrollPane(tree);
	    getContentPane().add(treeView);
	    setSize(new Dimension(400,200));
	}
}
